wrote all new functions's headers and docstrings
started recasting, added Login class