Added validation + more

Added validation with error messages for all inputs, indented all code according to default settings for WebStorm (hence the major line changes), added a few modules for a nicer user experience browsing the application and optimized the code a bit.