Added build folder and reorganized files

Added build folder and bat file
Reorganized files to include src and build folders
Added a minified segment.min.js file
Added null bitmask
Refactored based on linting