Cleaned up code, improved readme, added explanation to footer.