Changed namespace for all functions and global vars
Added doc strings
Added comment for usage