added Lib (currently broken)
Created package
Created package
added comments and fixed function scope bug