Added more functionality to library

Added:
1.Insert using parameters
2.Corrected existing functionality