Remove unused util functions
Add max size checking in build time
Update README