Updated code style
Finished documentation and updated code style