This research work focuses to design OCDMA system with improved coding techniques which will help reduce hardware requirement and still offer better performance for higher number of users. These codes have been designed by remodeling and improvising the existing concept of Prime Sequence Codes. A three way correlation is derived between various input parameters e.g. bit rate, received power with respect to number of users and performance indicators i.e. BER and Quality factor. The codes designed result in improved performance compared to previous researches in terms of quality factor and bit error rate with minimum input requirements of power, bit rate etc for even in case of larger number of users. This system can support 21 users with -15db received power for 1Gbps bit rate for permissible bit error rate of e-9. Moreover these results are more realistic as practical impairments have also been considered.