cleanup
added bit functions
added files
changed the way switch statements are generated for mps