Fixed typeof bug in create function. Removed unwanted files.