Add some new functions

Add new functions and removed puts.