Implemented reset and splitted the commands to a separate file.

Also fixed headers.
Split the code to even more files, added instructions to README