Removed main method, added documentation