Finish renaming a/b/p to source/target/amount. Start splitting up functions for array...